home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Essential Home & Business Collection
/
The Essential Home & Business Collection.iso
/
26
/
3
/
1
/
EXISTS.ZIP
/
DEMOEX.BAS
next >
Wrap
BASIC Source File
|
1990-02-14
|
823b
|
23 lines
$compile EXE ' says to compile this to a .exe file
$LIB ALL OFF ' no serial, print, or special graphic support
$ERROR ALL OFF'no error checking
$link "Exists.pbu" 'link in the previously created pbu
PUBLIC MatchedFil$ 'not used in this demo, but is in the pbu
DEFINT a-z
CLS
LINE INPUT "Which filename do you need to check ";filename$
' the next call is to the .pbu file, but no declare is
' needed except for your own reference.
CALL FindVol(Filename$,FileErr%,CreateDate$,CreatTime$)
SELECT CASE FileErr%
CASE 0
PRINT "I found ";UCASE$(filename$)
PRINT "Created ";CreateDate$;
PRINT " at ";CreatTime$
CASE 2,18
PRINT "No File Found."
END SELECT
END(FileErr%) 'pass errorlevel to a calling program if needed